package com.bigshark.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bigshark.api.model.UserToken;

import javax.servlet.http.HttpServletRequest;

public interface UserTokenService extends IService<UserToken> {
    UserToken queryByToken(String token);
    UserToken createToken(Long userId, HttpServletRequest request);
    void expireToken(String token);
}
